package com.cx.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@Document(collection = "comment")
public class Comment {
    @Id
    private String comment_id;
    private String comment_blog_id;
    private String comment_user_id;
    private String comment_user_name;
    private String comment_user_img;
    private String comment_content;
    private String comment_create_time;
    //@DBRef  转换成内嵌文档，无需引用注解
    private List<Responses> comment_responses;

    public String getComment_id() {
        return comment_id;
    }

    public void setComment_id(String comment_id) {
        this.comment_id = comment_id;
    }

    public String getComment_blog_id() {
        return comment_blog_id;
    }

    public void setComment_blog_id(String comment_blog_id) {
        this.comment_blog_id = comment_blog_id;
    }

    public String getComment_user_id() {
        return comment_user_id;
    }

    public void setComment_user_id(String comment_user_id) {
        this.comment_user_id = comment_user_id;
    }

    public String getComment_user_name() {
        return comment_user_name;
    }

    public void setComment_user_name(String comment_user_name) {
        this.comment_user_name = comment_user_name;
    }

    public String getComment_user_img() {
        return comment_user_img;
    }

    public void setComment_user_img(String comment_user_img) {
        this.comment_user_img = comment_user_img;
    }

    public String getComment_content() {
        return comment_content;
    }

    public void setComment_content(String comment_content) {
        this.comment_content = comment_content;
    }

    public String getComment_create_time() {
        return comment_create_time;
    }

    public void setComment_create_time(String comment_create_time) {
        this.comment_create_time = comment_create_time;
    }

    public List<Responses> getComment_responses() {
        return comment_responses;
    }

    public void setComment_responses(List<Responses> comment_responses) {
        this.comment_responses = comment_responses;
    }
}
